package com.mc.read.dao.mapper;

import com.mc.read.dao.models.Booklabel;
import com.mc.read.dao.models.BooklabelCustom;
import com.mc.read.dao.models.BooklabelExample;
import com.mc.read.dao.models.Labelaudit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BooklabelMapper {
    int countByExample(BooklabelExample example);

    int deleteByExample(BooklabelExample example);

    int deleteByPrimaryKey(Integer booklabelid);

    int insert(Booklabel record);

    int insertSelective(Booklabel record);

    List<Booklabel> selectByExample(BooklabelExample example);

    Booklabel selectByPrimaryKey(Integer booklabelid);

    int updateByExampleSelective(@Param("record") Booklabel record, @Param("example") BooklabelExample example);

    int updateByExample(@Param("record") Booklabel record, @Param("example") BooklabelExample example);

    int updateByPrimaryKeySelective(Booklabel record);

    int updateByPrimaryKey(Booklabel record);

    List<BooklabelCustom> selectLabelList(BooklabelCustom booklabelCustom);

    List<BooklabelCustom> selectLabelAllList(BooklabelCustom booklabelCustom);

    /**
     * @Author:LiuHao
     * @Date:15:24 2019/5/31
     **/
    int updateLikeSum(Integer booklabelid);

    int updateHateSum(Integer booklabelid);


    List<Integer> selectLabelIdList(Integer bookid);


    List<Booklabel> selectByLabelName(Labelaudit labelaudit);

    List<BooklabelCustom> selectBookLabel(Integer bookid);

}